package top.v5it.japi.plus.sdk;

import lombok.Getter;

/**
 * 自定义客户工具异常
 *
 * @author zhanpu
 * @date 2021/3/9
 */
public class JapiClientException extends RuntimeException {

    private static final long serialVersionUID = -7488474381729452636L;

    @Getter
    private final int status;

    public JapiClientException() {
        this(0);
    }

    public JapiClientException(String message) {
        this(0, message);
    }

    public JapiClientException(String message, Throwable cause) {
        this(0, message, cause);
    }

    public JapiClientException(int status, String message) {
        super(message);
        this.status = status;
    }

    public JapiClientException(int status, String message, Throwable cause) {
        super(message, cause);
        this.status = status;
    }

    public JapiClientException(int status) {
        super();
        this.status = status;
    }
}
